package pojo;

/**
 * @author konley
 * @date 2020-06-09 11:48
 * 学生类：存放学生信息
 */
public class Student {
    private int sid;   //学号
    private String name;   //姓名
    private String password;   //密码
    private String sex;     //性别
    private String dept;    //系别
    private String tel;     //手机

    //全参构造方法
    public Student(int sid, String name, String password, String sex, String dept, String tel) {
        this.sid = sid;
        this.name = name;
        this.password = password;
        this.sex = sex;
        this.dept = dept;
        this.tel = tel;
    }

    //无参构造方法
    public Student() {
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", dept='" + dept + '\'' +
                ", tel='" + tel + '\'' +
                '}';
    }
}
